package com.offcn.sellergood.service.impl;
import com.offcn.sellergood.dao.ItemMapper;
import com.offcn.sellergood.pojo.Item;
import com.offcn.sellergood.service.ItemService;

import com.offcn.entity.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
/****
 * @Author:ujiuye
 * @Description:Item业务层接口实现类
 * @Date 2021/2/1 14:19
 *****/
@Service
public class ItemServiceImpl extends ServiceImpl<ItemMapper,Item> implements ItemService {


    @Autowired
    private ItemMapper itemMapper;

    @Override
    public List<Item> findByStatus(String status) {
        QueryWrapper<Item> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("status",status);

        return itemMapper.selectList(queryWrapper);

    }
}
